const axios = require('axios');

Promise.all([jdzz(), ddfactory(), jxfactory(), bean(), farm(), pet(),jdcrazyjoy()])
    .then(function (results) {
        results.forEach(function (result) {
            console.log(result.data)
        })
    })
    .catch(function (errs) {
        console.error(errs)
    })


// 京东赚赚小程序互助码api
function jdzz() {
    return axios.get("https://code.chiang.fun/api/v1/jd/jdzz/create/S5KkcREgc91zfI0uinfYOIg/")
}


// 东东工厂互助码api
function ddfactory() {
    return axios.get("http://api.turinglabs.net/api/v1/jd/ddfactory/create/T0225KkcREgc91zfI0uinfYOIgCjVWnYaS5kRrbA/")
}


// 京喜工厂互助码api
function jxfactory() {
    return axios.get("http://api.turinglabs.net/api/v1/jd/jxfactory/create/q7MIGmK8sBaBb8zz45W4ZQ==/")
}


// 种豆提交互助码api
function bean() {
    return axios.get("http://api.turinglabs.net/api/v1/jd/bean/create/e7lhibzb3zek36yay5aeavbdiyovqt3nt7utn6i/")
}


// 农场提交互助码api
function farm() {
    return axios.get("http://api.turinglabs.net/api/v1/jd/farm/create/efcfbfefe31b4602b5eadca4ee7705f8/")
}


// 萌宠提交互助码api
function pet() {
    return axios.get("http://api.turinglabs.net/api/v1/jd/pet/create/MTE1NDAxNzcwMDAwMDAwNDAzMDQzNTM=/")
}

// 疯狂的joy提交互助码api
function jdcrazyjoy() {
    return axios.get("https://code.chiang.fun/api/v1/jd/jdcrazyjoy/create/U7Mn4DVGiyXHiqj0LBRtiat9zd5YaBeE/")
}

